package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.NodeType;
import com.cetc39.dao.NodeTypeDao;
import com.cetc39.service.NodeTypeService;

public class NodeTypeServiceImpl implements NodeTypeService {

	private NodeTypeDao nodeTypeDao;
	
	@Override
	public void add(NodeType nt) {
		nodeTypeDao.save(nt);
	}

	@Override
	public void update(NodeType nt) {
		nodeTypeDao.update(nt);
	}

	@Override
	public List<?> findAll() {
		return nodeTypeDao.findAll();
	}

	@Override
	public NodeType findById(int id) {
		return nodeTypeDao.findById(id);
	}

	@Override
	public void delete(int id) {
		nodeTypeDao.delete(id);
	}

	public void setNodeTypeDao(NodeTypeDao nodeTypeDao) {
		this.nodeTypeDao = nodeTypeDao;
	}

}
